
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
int main(int argc,char ** argv)
{
	int ret;
	int fd;
	switch(fork()){
		case -1:
			perror("fork error");
			return 1;
		case 0:
			printf("i am child process\n");
			return 0;
		default:
			printf("i am parent process\n");
			return 0;
	}
}
